import request from '@/utils/request'

export function getBanner(admin_id, token) {
  return request({
    url: '/_adminBanner/list',
    method: 'post',
    data: {
      admin_id,
      token
    }
  })
}

export function updateBanner(data) {
  return request({
    url: '/_adminBanner/edit',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data
  })
}

